package self.hoy.demo.cloud.sentinel.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 黑名单、白名单
 * @author 三共小不
 * @date 2021/7/6
 */
@RestController
public class WhiteBlackController {

    @GetMapping("/white")
    public String white(String name) {
        return "Hello, " + name;
    }

    @GetMapping("/black")
    public String black(String name) {
        return "Hello, " + name;
    }
}
